package com.jade.store.pay.entity;

import com.jade.bss.db.IdEntity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 支付历史
 * User: JinYa 2009_jinya@163.com
 * Date: 2016-11-2
 * Time: 14:51
 * Version : 1.0
 * Remark:
 * History:
 */
@Entity
@Table(name = "STORE_PAY_LOG")
public class PayLog extends IdEntity {
    public static final int TYPE_TENCENT = 1;//微信支付
    public static final int TYPE_TENCENT_SCAN = 11;//微信扫描支付
    public static final int TYPE_ALIPAY = 3;//支付宝付款
    public static final int TYPE_ALIPAY_SCAN = 31;//支付宝扫描付款
    public static final int BISHOP_PAY = 9;//BISHOP储值卡支付
    /**
     * 交易流水号
     */
    @Column(name = "serialNo", nullable = true,updatable = true,length = 100)
    private String serialNo;
    /**
     * 交易方式
     */
    @Column(name = "source", nullable = false,updatable = false)
    private int payType;
    /**
     * 交易订单号
     */
    @Column(name = "orderNo", nullable = true,updatable = true,length = 100)
    private String orderNo;
    /**
     * 店铺编号
     */
    @Column(name = "storeId", nullable = true,updatable = true)
    private long storeId= 0;
    /**
     * 导购编号
     */
    @Column(name = "employeeId", nullable = true,updatable = true)
    private long employeeId= 0;
    /**
     * 交易备注
     */
    @Column(name = "remark", nullable = true,updatable = true)
    private String remark;
    /**
     * 交易结果
     */
    @Column(name = "result", nullable = true,updatable = true,length = 100)
    private String result;
    @Transient
    private PayOrder payOrder;

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public int getPayType() {
        return payType;
    }

    public void setPayType(int payType) {
        this.payType = payType;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public long getStoreId() {
        return storeId;
    }

    public void setStoreId(long storeId) {
        this.storeId = storeId;
    }

    public long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(long employeeId) {
        this.employeeId = employeeId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public PayOrder getPayOrder() {
        return payOrder;
    }

    public void setPayOrder(PayOrder payOrder) {
        this.payOrder = payOrder;
    }
}
